package com.zzqstart.cateservice.controller.fallback;

import com.zzqstart.cateservice.controller.remote.consume.UcenRemoteController;
import com.zzqstart.commonutils.R;
import com.zzqstart.commonutils.entity.UcenterMember;
import com.zzqstart.servicebase.exceptionhandler.CateException;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * ClassName: UcenRemoteControllerFallBack
 * Package: com.zzqstart.cateservice.controller.fallback
 * Description:
 *
 * @Author zzqstart
 * @Create 2023-03-27 15:44
 * @Version 1.0
 */
@Component
public class UcenRemoteControllerFallBack implements UcenRemoteController {
    @Override
    public List<UcenterMember> getMemberList() {
        throw new CateException(20001,"time out:getMemberList");
    }

    @Override
    public UcenterMember getMemberInfoByMemberId(String memberId) {
        throw new CateException(20001,"time out:getMemberInfoByMemberId");
    }

    @Override
    public String getMemberIdByMemberName(String memberName) {
        throw new CateException(20001,"time out:getMemberIdByMemberName");
    }
}
